package org.dbpt.performance;

import java.sql.PreparedStatement;
import java.sql.SQLException;

/**
 * Param generator fills parameters in SQL queries with any data. 
 * @author Sergey Grigorchuk (sergey.grigorchuk@gmail.com)
 *
 */
public interface ParamGenerator {
	
	/**
	 * Method fills parameter with number paramIdx in prepared statement.
	 * @param preparedStatement prepared statement to be filled.
	 * @param paramIdx parameter index to be filled.
	 * @throws SQLException
	 */
	void generate(PreparedStatement preparedStatement, int paramIdx) throws SQLException;
}
